<?php
if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
$ui = new UI();
$conf = new Config();
$alert1 = $curruser['alert1'];
$alert2 = $curruser['alert2'];
if (isset($_POST['alert1']))
{
    $alert1 = intval($_POST['alert1']);
    $alert2 = intval($_POST['alert2']);
    getdb("update k_user set alert1=" . $alert1 . ", alert2=" . $alert2 . " where id=" . $curruser['id']);
}
if (isset($_POST['maxbet']))
{
    $conf->set("max_bat_hint", intval($_POST['maxbet']));
}
if (isset($_POST['stype']))
{
    $conf->set("alert_sound", intval($_POST['stype']));
}
$ui = new UI();
include( "member/news.php" );
echo title("警示");
$tpl = new template2();
$tpl->load("main", "alert.htm");
$tpl->set("alert1", $alert1);
$tpl->set("alert2", $alert2);
$tpl->set("maxbet", intval($conf->get("max_bat_hint")));
$sound = intval($conf->get("alert_sound"));
$tpl->set("check" . $sound, "checked");
$tpl->show("main");
$ui->footer();
?>